Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ensure BreakWord wrapping includes at least one glyph #439

Merged
merged 1 commit into from
Jan 9, 2025

Conversation

JimBobSquarePants
Copy link
Member

Prerequisites

  • I have written a descriptive pull-request title
  • I have verified that there are no overlapping pull-requests open
  • I have verified that I am following matches the existing coding patterns and practice as demonstrated in the repository. These follow strict Stylecop rules 👮.
  • I have provided test coverage for my change (where applicable)

Description

I was doing some additional testing and realized that if the wrapping length was less than the width of one glyph then the algorithm would attempt to add an empty line. The fix also fixes an issue where whitespace was erroneously included at the beginning of the next line.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot reviewed 2 out of 5 changed files in this pull request and generated no comments.

Files not reviewed (3)
  • tests/Images/ReferenceOutput/BreakWordEnsuresSingleCharacterPerLine__WrappingLength_1_.png: Language not supported
  • tests/Images/ReferenceOutput/MeasureTextWordBreakMatchesMDN_238-layoutMode_HorizontalBottomTop-wordBreaking_BreakWord.png: Language not supported
  • tests/Images/ReferenceOutput/MeasureTextWordBreakMatchesMDN_238-layoutMode_HorizontalTopBottom-wordBreaking_BreakWord.png: Language not supported
@JimBobSquarePants JimBobSquarePants merged commit 6de8c5c into main Jan 9, 2025
15 checks passed
@JimBobSquarePants JimBobSquarePants deleted the js/fix-break-word branch January 9, 2025 14:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants